Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use DIRECT_METHOD_CALL macro in ILinksExtensions.h #135

Closed

Conversation

linksplatform-sweepai[bot]
Copy link
Contributor

Description

This PR updates the Exists method in the ILinksExtensions class to use the DIRECT_METHOD_CALL macro. The DIRECT_METHOD_CALL macro allows for direct method calls on an object, bypassing virtual dispatch and improving performance. The Count method is now called using the DIRECT_METHOD_CALL macro, passing in the appropriate arguments.

Summary of Changes

  • Replaced the call to the Count method in the Exists method with a call using the DIRECT_METHOD_CALL macro.
  • Created a typename TStorage::LinkType object with the necessary arguments and passed it to the DIRECT_METHOD_CALL macro.
  • Updated the return statement of the Exists method to compare the result of the DIRECT_METHOD_CALL with 0.

Please review and merge these changes at your earliest convenience.

Fixes #134.


🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can:

  • Leave a comment below to get Sweep to edit the entire PR
  • Leave a comment in the code will only modify the file
  • Edit the original issue to get Sweep to recreate the PR from scratch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sweep: use DIRECT_METHOD_CALL macro in cpp/Platform.Data/ILinksExtensions.h
0 participants